package com.zzxx.service;

import com.zzxx.entity.User;
import com.zzxx.entity.UserAndCoupons;
import com.zzxx.exceptions.LoginException;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {
    String send(String email) throws LoginException;

    void register(User user) throws LoginException;

    User findUser(String username, String password) throws LoginException;

    Boolean active(String id);

	User findById(String id);

    void loadPhoto(MultipartFile photoFile) throws Exception;

	void packageUserAndCoupons(UserAndCoupons uac, String tid);

    void updateMoney(User  user);

}
